import request from '@/utils/request'



const BASE_URL='/admin/system/sysParkingUse';

export default{

    findPageInfo(page,limit,searchObj){
      return request({
            url:`${BASE_URL}/${page}/${limit}`,
            method:'get',
            params:searchObj
        })
    },

    addParkingUse(sysParkingUse){
        return request({
            url:`${BASE_URL}/addParkingUse/`,
            method:'post',
            data:sysParkingUse
        })
    },

    findParkingUseById(id){
        return request({
            url:`${BASE_URL}/findParkingUseById/${id}`,
            method:'get',
            
        })
    },

    updateParkingUse(sysParkingUse){
        return request({
            url:`${BASE_URL}/updateParkingUse`,
            method:'post',
            data:sysParkingUse
        })
    },

    removeParkingUseById(id){
        return request({
            url:`${BASE_URL}/removeParkingUseById/${id}`,
            method:'delete',
            
        })
    },
        //  7、批量删除
        batchremoveId(ids) {
            return request({
                url: `${BASE_URL}/removeParkingUseByIds`,
                method: 'delete',  // 提交方式
                data: ids
            })
        },



    




    
}